package com.shequan.weibo.service.impl;

import java.util.List;

import com.shequan.shequan.bean.pojo.Shequan;
import com.shequan.shequan.dao.ShequanDAO;
import com.shequan.weibo.bean.pojo.Topic;
import com.shequan.weibo.dao.TopicDAO;
import com.shequan.weibo.service.TopicService;
/**
 * 
 * <P>
 * Copyright 2012 shequaner.
 * 
 * All Rights Reserved.
* @author mazg
 * @version 1.0, 2012-3-16
 * @see com.shequan.weibo.service.impl.TopicServiceImpl 
 * @since 1.0
 */
public class TopicServiceImpl implements TopicService {
	private TopicDAO topicDAO;

	public List<Topic> queryHotTopicListByUserId(int userId) {
		List<Topic> topicList = null;
		// 查询用户参加的社圈
		topicList = topicDAO.queryTopicListByUserId(userId);
		return topicList;
	}

	public List<Topic> queryTopicListByShequanId(int shequanId) {
		List<Topic> topicList = null;
		// 查询用户参加的社圈
		topicList = topicDAO.queryTopicListByShequanId(shequanId);
		return topicList;
	}

	/**
	 * @param topicDAO
	 *            the topicDAO to set
	 */
	public void setTopicDAO(TopicDAO topicDAO) {
		this.topicDAO = topicDAO;
	}


}
